//
//  Com_ForegroundColorStringAttribute.m
//  WEIXUE_RN
//
//  Created by WangGuoli on 2017/11/17.
//  Copyright © 2017年 zhanghao. All rights reserved.
//

#import "Com_ForegroundColorStringAttribute.h"

@implementation Com_ForegroundColorStringAttribute
- (NSString *)attributeName {
  
  return NSForegroundColorAttributeName;
}

+ (Com_ForegroundColorStringAttribute *)foreColor:(UIColor *)color effectiveRange:(NSRange)range {
  
  Com_ForegroundColorStringAttribute * strAttribute = [[Com_ForegroundColorStringAttribute alloc]init];
  strAttribute.attributeValue = color;
  strAttribute.effectiveRange = range;
  return strAttribute;
}

@end
